<template>
<div>

  <div id="nav">
    <router-link to="/">Home</router-link> |
    <router-link to="/visitor">visitor</router-link>|
    <router-link to="/admin">admin</router-link>|
    <router-link to="/login">login</router-link>
  </div>
  <router-view />
  </div>
</template>

<style lang="less">
body {
  width: 100%;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
    Helvetica, Segoe UI, Arial, Roboto, 'PingFang SC', 'miui',
    'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  background-color: #f7f8fa;
}
#app {
}

#nav {
  padding: 30px;
  font-size: 2.8rem;
  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #00a1d6;
    }
  }
}
</style>
